﻿@using JinRi.Services.Helpers
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>@ViewBag.Title</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>

    <link href="~/css/bootstrap.css" rel="stylesheet" />
    <link href="~/css/jquery.fileupload.css" rel="stylesheet" />
    <link href="~/css/font-awesome.css" rel="stylesheet" />
    <link href="~/css/ionicons.css" rel="stylesheet" />
    <link href="~/css/AdminLTE.css" rel="stylesheet" type="text/css" />
    <link href="~/css/admin.css" rel="stylesheet" />
    <style>
        .row {
            margin-left: -10px;
            margin-right: -10px;
        }
    </style>
</head>
<body class="skin-blue">
    <header class="header">
        <a href="@Url.Action("List","Product")" class="logo">
            今日动画管理后台
        </a>
        <nav class="navbar navbar-static-top" role="navigation">
            <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <div class="navbar-right">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="glyphicon glyphicon-user"></i>
                            <span>@Html.GetCurrentUser()<i class="caret"></i></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-footer">
                                <div class="pull-right">
                                    <a href="@Url.Action("Logout","Account")" class="btn btn-default btn-flat">注销</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <div class="wrapper row-offcanvas row-offcanvas-left">
        <aside class="left-side sidebar-offcanvas">
            <section class="sidebar">
                <!-- sidebar menu: : style can be found in sidebar.less -->
                <ul class="sidebar-menu">
                    <li class="treeview @Html.CurrentControllerClass("Home","active")">
                        <a href="#">
                            <span>首页</span>
                            <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="@Html.CurrentActionClass("Banner", "Home", "active")"><a href="@Url.Action("Banner", "Home")"><i class="fa fa-angle-double-right"></i> 首页动画</a></li>
                        </ul>
                    </li>
                    <li class="treeview @Html.CurrentControllerClass("About","active")">
                        <a href="#">
                            <span>今日动画</span>
                            <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="@Html.CurrentActionClass("Banner", "About", "active")"><a href="@Url.Action("Banner", "About")"><i class="fa fa-angle-double-right"></i> 头部图片及介绍</a></li>
                            <li class="@Html.CurrentActionClass("List", "About", "active")"><a href="@Url.Action("List", "About")"><i class="fa fa-angle-double-right"></i> 奖项列表</a></li>
                        </ul>
                    </li>

                    <li class="treeview @Html.CurrentControllerClass("Product","active")">
                        <a href="#">
                            <span>今日作品</span>
                            <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="@Html.CurrentActionClass("List", "Product", "active")"><a href="@Url.Action("List","Product")"><i class="fa fa-angle-double-right"></i> 作品列表</a></li>
                        </ul>
                    </li>
                    
                    <li class="treeview @Html.CurrentControllerClass("Video","active")">
                        <a href="#">
                            <span>在线观看</span>
                            <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="@Html.CurrentActionClass("List", "Video", "active")"><a href="@Url.Action("List", "Video")"><i class="fa fa-angle-double-right"></i> 视频列表</a></li>
                        </ul>
                    </li>
                    
                    <li class="treeview @Html.CurrentControllerClass("News", "active")">
                        <a href="#">
                            <span>新闻</span>
                            <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="@Html.CurrentActionClass("Banner", "News", "active")"><a href="@Url.Action("Banner", "News")"><i class="fa fa-angle-double-right"></i> 头部图片</a></li>
                            <li class="@Html.CurrentActionClass("List", "News", "active")"><a href="@Url.Action("List", "News")"><i class="fa fa-angle-double-right"></i> 新闻列表</a></li>
                        </ul>
                    </li>
                    
                    <li class="treeview @Html.CurrentControllerClass("Job", "active")">
                        <a href="#">
                            <span>招聘</span>
                            <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="@Html.CurrentActionClass("Banner", "Job", "active")"><a href="@Url.Action("Banner", "Job")"><i class="fa fa-angle-double-right"></i> 头部图片及内容</a></li>
                            <li class="@Html.CurrentActionClass("List", "Job", "active")"><a href="@Url.Action("List", "Job")"><i class="fa fa-angle-double-right"></i> 职位列表</a></li>
                        </ul>
                    </li>

                    <li class="treeview @Html.CurrentControllerClass("Contact", "active")">
                        <a href="#">
                            <span>联系我们</span>
                            <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="@Html.CurrentActionClass("Banner", "Contact", "active")"><a href="@Url.Action("Banner", "Contact")"><i class="fa fa-angle-double-right"></i> 头部图片及内容</a></li>
                        </ul>
                    </li>
                    <li class="treeview @Html.CurrentControllerClass("Law", "active")">
                        <a href="#">
                            <span>法律声明
                            </span>
                            <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="@Html.CurrentActionClass("Banner", "Law", "active")"><a href="@Url.Action("Banner", "Law")"><i class="fa fa-angle-double-right"></i>内容</a></li>
                        </ul>
                    </li>
                    <li class="treeview @Html.CurrentControllerClass("Image","active")">
                        <a href="#">
                            <span>图片管理</span>
                            <i class="fa fa-angle-left pull-right"></i>
                        </a>
                        <ul class="treeview-menu">
                            <li class="@Html.CurrentActionClass("List", "Image", "active")"><a href="@Url.Action("List", "Image")"><i class="fa fa-angle-double-right"></i> 图片列表</a></li>
                        </ul>
                    </li>
                </ul>
            </section>
            <!-- /.sidebar -->
        </aside>
        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="right-side">
            <!-- Main content -->
            <section class="content">
                <div class="row">
                    <!-- right column -->
                    <div class="col-md-12">
                        @RenderBody()
                    </div><!--/.col (right) -->
                </div>   <!-- /.row -->
            </section><!-- /.content -->
        </aside><!-- /.right-side -->
    </div>

    <script src="~/js/jquery.js"></script>
    <script src="~/js/jquery.ui.widget.js"></script>
    <script src="~/js/jquery.iframe-transport.js"></script>
    <script src="~/js/jquery.fileupload.js"></script>
    <script src="~/js/bootstrap.js"></script>
    <script src="~/js/AdminLTE/app.js" type="text/javascript"></script>
    <script src="~/js/admin.js" type="text/javascript"></script>
    
    <script type="text/javascript" charset="utf-8" src="~/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="~/ueditor/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="~/ueditor/lang/zh-cn/zh-cn.js"></script>

    <!-- 实例化编辑器代码 -->
    <script type="text/javascript">
        $(function () {
            UE.getEditor('container');
            UE.getEditor('container2');
        });
    </script>

    @RenderSection("Scripts", false)
    
    <script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?d0cfecb16d9e7bffb8f615b09b2c1e3a";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    </script>

</body>
</html>
